from selenium.webdriver.common.by import By

from exam.page.base_page import BasePage
from exam.page.create_project import CreateProject


class MainPage(BasePage):
    __NEW_PROJECT_BTN = By.XPATH, "(//h3)[1]"

    def goto_new_project(self):
        self.find_ele_and_click(*self.__NEW_PROJECT_BTN)
        return CreateProject(self.driver)
